package com.san.hkhospital.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.san.hkhospital.entity.Surgery;
import com.san.hkhospital.entity.SurgeryExample;
import com.san.hkhospital.mapper.SurgeryMapper;
import com.san.hkhospital.service.SurgeryService;
import org.springframework.transaction.annotation.Transactional;

/**
 * ClassName:SurgeryServiceImpl
 * PackageName:com.san.hkhospital.service.impl
 * Description:
 *
 * @Author:yy
 * @CreatedAt:2024/11/13 14:38
 * 
 */
 
 
@Service
@Transactional
public class SurgeryServiceImpl implements SurgeryService{

    @Resource
    private SurgeryMapper surgeryMapper;

    @Override
    public long countByExample(SurgeryExample example) {
        return surgeryMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(SurgeryExample example) {
        return surgeryMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer surId) {
        return surgeryMapper.deleteByPrimaryKey(surId);
    }

    @Override
    public int insert(Surgery record) {
        return surgeryMapper.insert(record);
    }

    @Override
    public int insertSelective(Surgery record) {
        return surgeryMapper.insertSelective(record);
    }

    @Override
    public List<Surgery> selectByExample(SurgeryExample example) {
        return surgeryMapper.selectByExample(example);
    }

    @Override
    public Surgery selectByPrimaryKey(Integer surId) {
        return surgeryMapper.selectByPrimaryKey(surId);
    }

    @Override
    public int updateByExampleSelective(Surgery record,SurgeryExample example) {
        return surgeryMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(Surgery record,SurgeryExample example) {
        return surgeryMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(Surgery record) {
        return surgeryMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Surgery record) {
        return surgeryMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Surgery> surgeryList() {
        return surgeryMapper.selectByExample(null);
    }

}
